<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
        .div2{
            width:200px;
            height:30px;
            background-color: red;
        }

    </style>
</head>
<body>
<div>点击
</div>
<div class="div2">
    div2
</div>
<script src="js/jquery-3.1.0.js"></script>
<script type="text/javascript">
    $("div").click(function () {
        console.log($(this).text())
        $(this).toggleClass("div2")//addClass css  removeClass
        if ($(this).text()=="点击"){
            $(this).text("点击完毕")
            console.log("123");
            return ;
        }else{
            $(this).text("点击");
        }
    })
    $(".div2").removeClass();//移除class
</script>
</body>
</html>